package frame.service.anno;

import frame.service.standard.Constants;
import frame.service.standard.ServiceCheck;
import org.springframework.stereotype.Component;

import java.lang.annotation.*;

/***
 * 服务配置
 */
@Target({ElementType.TYPE})
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Component
public @interface MiayService {
    /**
     * 默认为安全接口
     * */
    String safeMode() default Constants.SAFE_MODE_SECURE;
    String module();
    String service();
    String[] supportHttpMethod() default {"POST"};
    /**
     * 根据bean name查找 ServiceCheck，创建时需要使用 @Bean("checkName")指定name信息，用于查找ServiceCheck
     * @see ServiceCheck
     * */
    String[] checkers() default {};
}
